% SumPower
function result = SumPower(x)
result = 0;
len = length(x);
for i = 1:len
    result = result + abs(x(i))^(i+1);
end
end